var $blUpload = $('.bl-upload');
$blUpload.on("tap", function(e) {
	//定义常量
	var uploadFlag = e.target.innerText;
	var prove = e.target.dataset.prove;
	var $proveType = $('#bl-' + prove);
	var isUpload = e.target.innerText === '已上传' ? true : false;
	$proveType.toggleClass('hidden');
});

//定义一个日期对象  格式 yyyy年mm月dd日
//new Mdate("dateSelector");

//定义一个日期对象  格式 yyyy/mm/dd
//new Mdate("dateSelector", {
//	format: "/"
//});

//定义一个日期对象  格式 yyyy-mm-dd
//new Mdate("dateSelector", {
//	format: "-"
//});

//定义一个日期对象  格式 yyyy年mm月
//new Mdate("dateSelector", {
//	format: "YM",
//	date: "YM"
//});

//定义一个日期对象  格式 yyyy/mm
//new Mdate("dateSelector", {
//	format: "Y/M",
//	date: "YM"
//});

//定义一个日期对象  格式 yyyy-mm
new Mdate("dateSelector", {
	format: "Y-M",
    date: "YM"
});

//定义一个日期对象  格式 yyyy
//new Mdate("dateSelector", {
//	format: "Y"
//  date: "Y"
//});

//配置必填项标识


$(function() {

	//上传图片
	var $tgaUpload = $('#householdUpload').diyUpload({
		url: '/uploadFilePath',
		success: function(data) {},
		error: function(err) {},
		buttonText: '',
		accept: {
			title: "Images",
			extensions: 'gif,jpg,jpeg,bmp,png'
		},
		thumb: {
			width: 120,
			height: 90,
			quality: 100,
			allowMagnify: true,
			crop: true,
			type: "image/jpeg"
		}
	});
});

$(function() {

	//上传图片
	var $tgaUpload = $('#liveUpload').diyUpload({
		url: '/uploadFilePath',
		success: function(data) {},
		error: function(err) {},
		buttonText: '',
		accept: {
			title: "Images",
			extensions: 'gif,jpg,jpeg,bmp,png'
		},
		thumb: {
			width: 120,
			height: 90,
			quality: 100,
			allowMagnify: true,
			crop: true,
			type: "image/jpeg"
		}
	});
});

$(function() {

	//上传图片
	var $tgaUpload = $('#identityUpload').diyUpload({
		url: '/uploadFilePath',
		success: function(data) {},
		error: function(err) {},
		buttonText: '',
		accept: {
			title: "Images",
			extensions: 'gif,jpg,jpeg,bmp,png'
		},
		thumb: {
			width: 120,
			height: 90,
			quality: 100,
			allowMagnify: true,
			crop: true,
			type: "image/jpeg"
		}
	});
});